package com.example.demo

class DemoApplication {

	static void main(String[] args) {
		// Using a simple println statement to print output to the console
		println('Hello World');

		//Example of a int datatype
		int x = 5;

		//Example of a long datatype
		long y = 100L;

		//Example of a floating point datatype
		float a = 10.56f;

		//Example of a double datatype
		double b = 10.5e40;

		//Example of a BigInteger datatype
		BigInteger bi = 30g;

		//Example of a BigDecimal datatype
		BigDecimal bd = 3.5g;

		println(x);
		println(y);
		println(a);
		println(b);
		println(bi);
		println(bd);

		DisplayName();
	}

	static def DisplayName() {
		println("This is how methods work in groovy");
		println("This is an example of a simple method");
	}

}
